﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Hangjing.Model;
using Hangjing.SQLServerDAL;

using System.Text;
using Hangjing.Common;

namespace Html5
{
    /// <summary>
    /// 跑腿订单成功
    /// </summary>
    public partial class expressOrderSuccess : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                string orderid = HjNetHelper.GetQueryString("orderid");
                lborderid.InnerHtml = orderid;

                Custorder dalorder = new Custorder();
                CustorderInfo infoorder = dalorder.GetModel(orderid);

                decimal p =  infoorder.shopdiscountmoney;

                lbprice.InnerHtml = p.ToString();


                //微信支付
                if (infoorder.paymode == 5 && p > 0)
                {
                    string url = "/weixinpay/wxpay.aspx?orderid=" + infoorder.orderid + "&showwxpaytitle=1";
                    url += "&price=" + p+"&cityid="+infoorder.cityid;

                    Response.Redirect(url);

                }
            }

        }
    }
}
